﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace BusinessModel
{
    public class ProductType : BaseModel
    {
        #region Primitive Properties
        //ParentId
        private int? _ParentId;
        public int? ParentId
        {
            get { return _ParentId; }
            set
            {
                if (_ParentId != value)
                {
                    _ParentId = value;
                    OnPropertyChanged("ParentId");
                }
            }
        }
        //ParentName
        private string _ParentName;
        public string ParentName
        {
            get { return _ParentName; }
            set
            {
                if (_ParentName != value)
                {
                    _ParentName = value;
                    OnPropertyChanged("ParentName");
                }
            }
        }
        //Code
        private string _Code;
        public string Code
        {
            get { return _Code; }
            set
            {
                if (_Code != value)
                {
                    _Code = value;
                    OnPropertyChanged("Code");
                }
            }
        }
        //Name
        private string _Name;
        public string Name
        {
            get { return _Name; }
            set
            {
                if (_Name != value)
                {
                    _Name = value;
                    OnPropertyChanged("Name");
                }
            }
        }
        //Note
        private string _Note;
        public string Note
        {
            get { return _Note; }
            set
            {
                if (_Note != value)
                {
                    _Note = value;
                    OnPropertyChanged("Note");
                }
            }
        }
        #endregion
    }
}
